package top.italks.demo.user;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;


public interface UserRepository extends CrudRepository<User, Integer> {

    @Query(value = "from User u where u.name=?1")
    User getUserByName(String name);
}